import axios from "axios";

// post请求
export function post(url, params) {
    return new Promise((resolve, reject) => {
        axios.post(url, params,{
            headers: {
                'Content-Type': 'multipart/form-data'
            }
        }).then((resp) => {
            resolve(resp);
        }).catch((err) => {
            reject(err)
        });
   });
}

